﻿<%@ Page Title="Yeni Kullanıcı Tanımla" Language="C#" MasterPageFile="~/TapuKadastro.master"
    AutoEventWireup="True" Inherits="IKYSWeb.Yetki.Yetki_TasraKullanici" CodeBehind="TasraKullanici.aspx.cs" %>

<%@ Register Src="../UserControls/Tarih.ascx" TagName="Tarih" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/AutoComplete.ascx" TagName="AutoComplete" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/YetkiKontrol.ascx" TagName="YetkiKontrol" TagPrefix="uc4" %>
<%@ Register Src="../UserControls/CokluSecim.ascx" TagName="CokluSecim" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="Server">
    <h3 class="title">
        Yetki İşlemleri &#8594; Yeni Kullanıcı Tanımla</h3>
    <asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
        <asp:View runat="server" ID="vListe">
            <table class="form">
                <tr>
                    <td class="label">
                        Adı Soyadı
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdiAra" runat="server" Width="95px"></asp:TextBox>
                        <asp:TextBox ID="txtSoyadiAra" runat="server" Width="95px"></asp:TextBox>
                    </td>
                    <td class="label">
                        Kullanıcı Adı
                    </td>
                    <td>
                        <asp:TextBox ID="txtKullaniciAdiAra" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="buton" colspan="4">
                        <asp:Button ID="btnAra" runat="server" Text="Listele" OnClick="btnAra_Click" />
                        &nbsp;<asp:Button ID="btnYeniKayit" runat="server" Text="Yeni Kayıt" CausesValidation="False"
                            OnClick="btnYeniKayit_Click" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="grdListe" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CssClass="grid" EmptyDataText="Tanımlı kullanıcı bulunamadı." DataKeyNames="KullaniciID"
                PagşeSize="20" OnRowCommand="grdListe_RowCommand" OnPageIndexChanging="grdListe_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="TCKimlikNo" HeaderText="TC Kimlik No" />
                    <asp:BoundField DataField="ADSOYAD" HeaderText="Adı Soyadı" />
                    <asp:BoundField DataField="KullaniciAdi" HeaderText="Kullanıcı Adı" />
                    <asp:BoundField DataField="Aciklama" HeaderText="Açıklama" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="Guncelle" Text="Güncelle" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Sil" CommandName="Sil" Text="Sil" />
                </Columns>
                <RowStyle CssClass="even" />
                <AlternatingRowStyle CssClass="odd" />
                <EditRowStyle CssClass="odd" />
                <EmptyDataRowStyle CssClass="empty" />
            </asp:GridView>
        </asp:View>
        <asp:View runat="server" ID="vKayit">
            <table class="form">
                <tr>
                    <td class="label" style="width: 10%">
                        Kullanıcı Adı
                    </td>
                    <td style="width: 90%">
                        <asp:TextBox ID="txtKullaniciAdi" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvKullaniciAdi" runat="server" ControlToValidate="txtKullaniciAdi"
                            ValidationGroup="kaydet" ErrorMessage="Kullanıcı adı giriniz!" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        şifre
                    </td>
                    <td>
                        <asp:TextBox ID="txtSifre" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvSifre" runat="server" ErrorMessage="Bir şifre giriniz!"
                            ValidationGroup="kaydet" ControlToValidate="txtSifre" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        şifre Tekrar
                    </td>
                    <td>
                        <asp:TextBox ID="txtSifre2" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                        <asp:CompareValidator ID="cmpSifre" runat="server" ErrorMessage="şifre tekrarı girilen şifre ile aynı olmalıdır."
                            ValidationGroup="kaydet" ControlToCompare="txtSifre2" ControlToValidate="txtSifre"
                            Display="Dynamic"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        TC Kimlik No
                    </td>
                    <td>
                        <asp:TextBox ID="txtTckimlikNo" runat="server" Width="200px" CssClass="int" MaxLength="11"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvTCNo" runat="server" ErrorMessage="Lütfen TC Kimlik No giriniz"
                            ControlToValidate="txtTCKimlikNo" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="rvTCNo" runat="server" ErrorMessage="RangeValidator" ControlToValidate="txtTCKimlikNo"
                            MaximumValue="100000000000" MinimumValue="10000000000" Type="Double" Display="Dynamic">TC Kimlik No 11 hane olmalıdır.</asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Adı Soyadı
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdi" runat="server" Width="94px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvAdi" runat="server" ControlToValidate="txtAdi"
                            ValidationGroup="kaydet" ErrorMessage="Adını giriniz" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtSoyadi" runat="server" Width="94px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvSoyadi" runat="server" ControlToValidate="txtSoyadi"
                            ValidationGroup="kaydet" ErrorMessage="Soyadını giriniz!" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Açıklama
                    </td>
                    <td>
                        <asp:TextBox ID="txtAciklama" runat="server" Height="52px" TextMode="MultiLine" Width="50%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="buton">
                        <asp:Button ID="btnGeri" runat="server" CssClass="btn_back" Text="Geri" CausesValidation="False"
                            OnClick="btnGeri_Click" />
                        <asp:Button ID="btnKaydet" runat="server" Text="Kullanıcı Kaydet" OnClick="btnKaydet_Click"
                            ValidationGroup="kaydet" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
